public class Cat extends Animal implements Pet {
    public Cat(String name) {
        super(name);
    }

    @Override
    public void play() {
        System.out.println(getName() + " plays with a ball of yarn.");
    }
}
